Skip to content

Fix GitHub issue 3881 #3898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ScriptedAlchemy
Copy link
Member

@ScriptedAlchemy ScriptedAlchemy commented Jul 11, 2025

#3881

This pull request introduces enhancements to the pluginModuleFederation functionality in the rsbuild-plugin package, focusing on improving flexibility and adding test coverage. The key changes include making the rsbuildOptions parameter optional and adding comprehensive unit tests for the pluginModuleFederation function.

Enhancements to pluginModuleFederation:

  • Made the rsbuildOptions parameter optional in the pluginModuleFederation function, improving its usability by allowing it to be called without explicitly passing configuration options. (packages/rsbuild-plugin/src/cli/index.ts, packages/rsbuild-plugin/src/cli/index.tsL101-R101)

Added unit tests:

  • Added a new test suite in index.test.ts to validate the behavior of the pluginModuleFederation function under different scenarios, including cases with and without the rsbuildOptions parameter. This ensures the function behaves as expected in all supported configurations. (packages/rsbuild-plugin/src/cli/index.test.ts, packages/rsbuild-plugin/src/cli/index.test.tsR1-R29)

Copy link

changeset-bot bot commented Jul 11, 2025

⚠️ No Changeset found

Latest commit: 221e196

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ScriptedAlchemy ScriptedAlchemy requested a review from 2heal1 July 11, 2025 20:16
Copy link

netlify bot commented Jul 11, 2025

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 221e196
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/687170fc624711000883ed6e
😎 Deploy Preview https://deploy-preview-3898--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants